package com.example.myblog1_0.service.Impl;

import com.example.myblog1_0.mapper.WebMsgMapper;
import com.example.myblog1_0.service.WebMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: xc
 * @Date: 2019/3/22 20:09
 * @Description:
 **/
@Service
public class WebMsgServiceImpl implements WebMsgService{
    @Autowired
    WebMsgMapper webMsgMapper;
    @Override
    public boolean insertIP(String ip) {
        return webMsgMapper.insertIP(ip);
    }

    @Override
    public int getIPNum() {
        return webMsgMapper.getIPNum();
    }

    @Override
    public String queryIP(String ip) {
        return webMsgMapper.queryIP(ip);
    }

    @Override
    public boolean updateNum() {
        return webMsgMapper.updateNum();
    }

    @Override
    public int getVisitorNum() {
        return webMsgMapper.getVisitorNum();
    }
}
